/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.decorator;

import com.aeky.decorator.beverage.Beverage;
import com.aeky.decorator.beverage.BeverageA;
import com.aeky.decorator.condiment.CondimentA;
import com.aeky.decorator.condiment.CondimentB;

/**
 * 装饰者测试类
 * 
 * @author aeky
 */
public class Test {

    /**
     * @param args
     */
    public static void main(String[] args) {
        Beverage ba = new BeverageA();
        CondimentA ca = new CondimentA(ba);
        System.out.println(ca.cost());
        System.out.println(ca.getDescription());
        CondimentB cb = new CondimentB(ca);
        System.out.println(cb.cost());
        System.out.println(cb.getDescription());
    }

}
